define(function(){
    return function(res,cont){
        let str = "";
        for(let i=0;i<res.length;i++){
            str += `<li class="container-left-l" index="${res[i].proId}">
                        <div class="container-left-l-d1"><a href="details.html" target="_blank" class="container-left-l-d1-a"><img src="${res[i].urlImg}" alt="" class="container-left-l-d1-i"></a></div>
                        <div class="container-left-l-d2">
                            <div class="container-left-l-d2-d1">
                                <span class="container-left-l-d2-d1-s1">${res[i].cPrice}</span><span class="container-left-l-d2-d1-s2">${res[i].discount}</span><s class="container-left-l-d2-d1-s3">${res[i].oPrice}</s>
                            </div>
                            <P class="container-left-l-d2-p1">${res[i].bookName}</P>
                            <p class="container-left-l-d2-p2"><a href="#"> ${res[i].author} </a> / <a href="#"> ${res[i].publish} </a></p>
                            <div class="container-left-l-d2-d2"><span class="container-left-l-d2-d2-s1">加入购物车</span><span class="container-left-l-d2-d2-s2">收藏</span></div>
                        </div>
                    </li>`
        }
        cont.innerHTML = str;
    }
})